/*****************************************************************
**                                                             	**
**  Copyright (C) 2004 Amlogic,Inc.                            	**
**  All rights reserved                                        	**
**        Filename : respurce.h /Project:AVOS demo			**
**        Revision : 1.1                                       	**
**                                                             	**
*****************************************************************/
#include "aw_windows.h"
#include "resource.h"
#include "user.h"

#ifdef KEEP_RESOURCE_IN_MEM
#ifndef WISTAR_VERSION
#ifdef BIG5
   #include "resource\MsgEnglish_big5_mem.h"
   #include "resource\MsgChinese_big5_mem.h"
#else
    #include "resource\MsgChinese_mem.h"
    #include "resource\MsgEnglish_mem.h"
#endif
#else
#include "resource\MsgChinese_wistar_mem.h"
#include "resource\MsgEnglish_wistar_mem.h"
#endif
#endif //end of #ifdef KEEP_RESOURCE_IN_MEM

void InitResource(void)
{
	AWResourceInit(0x80000); //default is 128kbytes
#ifdef KEEP_RESOURCE_IN_MEM
  #ifndef WISTAR_VERSION
      #ifdef BIG5
         AWResourceRegister((OSD_LANGUAGE_STRING >> 16), "/dev/flash/MsgChinese_big5.res",MsgChinese_big5_mem);//add liu
      #else
      AWResourceRegister((OSD_LANGUAGE_STRING >> 16), "/dev/flash/MsgChinese.res",MsgChinese_mem);
     #endif
  #else
      AWResourceRegister((OSD_LANGUAGE_STRING >> 16), "/dev/flash/MsgChinese_wistar.res",MsgChinese_wistar_mem);
  #endif
#else
  #ifndef WISTAR_VERSION
      #ifdef BIG5
           AWResourceRegister((OSD_LANGUAGE_STRING >> 16), "/dev/flash/MsgChinese_big5.res",MsgChinese_big5_mem);//add liu
      #else 
      AWResourceRegister((OSD_LANGUAGE_STRING >> 16), "/dev/flash/MsgChinese.res",NULL);
      #endif
  #else
      AWResourceRegister((OSD_LANGUAGE_STRING >> 16), "/dev/flash/MsgChinese_wistar.res",NULL);
  #endif
#endif //end of #ifdef KEEP_RESOURCE_IN_MEM
    return ;
}
